package com.lzp.systemopt.main

import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.base.BaseFragment
import com.imageloader.ImageLoader
import com.lzp.systemopt.ImageUtilsActivity
import com.lzp.systemopt.R
import com.utils.LogUtils
import com.utils.OsUtils
import com.utils.PathUtils
import com.utils.ToastUtils
import com.utils.permission.PermissionConstant
import com.utils.permission.PermissionListener
import com.utils.permission.PermissionUtils
import kotlinx.android.synthetic.main.systemopt_fragment.*
import java.io.File

/**
 * @describe:
 * @Author: lixiaopeng
 * @Date: 2020/3/24
 */
class SystemOptFragment : BaseFragment(), View.OnClickListener {

    private val TAG = "SystemOptFragment"

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.systemopt_fragment, null)
    }

    override fun initView() {
        super.initView()

    }

    override fun setListener() {
        super.setListener()
        cropImageView.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when (v?.id) {
            R.id.cropImageView -> {
                startActivity(Intent(activity,ImageUtilsActivity::class.java))
            }
        }
    }

}